using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BcodeSceneRuleMap : EntityTypeConfiguration<t_BcodeSceneRule>
    {
        public t_BcodeSceneRuleMap()
        {
            // Primary Key
            this.HasKey(t => t.FDestSceneID);

            // Properties
            this.Property(t => t.FDestSceneID)
                .IsRequired()
                .HasMaxLength(30);

            this.Property(t => t.FDescription)
                .HasMaxLength(80);

            this.Property(t => t.FDescription_CHT)
                .IsRequired()
                .HasMaxLength(80);

            this.Property(t => t.FDescription_EN)
                .IsRequired()
                .HasMaxLength(80);

            // Table & Column Mappings
            this.ToTable("t_BcodeSceneRule");
            this.Property(t => t.FDestSceneID).HasColumnName("FDestSceneID");
            this.Property(t => t.FDescription).HasColumnName("FDescription");
            this.Property(t => t.FDescription_CHT).HasColumnName("FDescription_CHT");
            this.Property(t => t.FDescription_EN).HasColumnName("FDescription_EN");
            this.Property(t => t.FBCoderuleID).HasColumnName("FBCoderuleID");
        }
    }
}
